package com.naiterui.ehp.bp.domain;

import lombok.Data;

import javax.persistence.*;

import java.io.Serializable;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 通知消息表
 *
 * @author luao
 * @date 2021/3/9 4:57 下午
 **/
@Data
@Entity
@Table(name = "notice_message")
public class NoticeMessage implements Serializable {
    private static final long serialVersionUID = 8504386673927458469L;

    /** 院务公开 **/
    public static final int TYPE_MANAGEMENT = 1;

    // 主键
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;

    /**
     * 标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 类型 1.院务公开
     */
    @Column(name = "type")
    private Integer type;



    /**
     * 发布时间
     */
    @Column(name = "release_time")
    private Date releaseTime;

    /**
     * 删除标记 0:正常 1:删除
     */
    @Column(name = "del_flag")
    private Integer delFlag;

    @Column(name = "version")
    private Integer version;

    @Column(name = "created_at")
    private Date createdAt;

    @Column(name = "created_by")
    private String createdBy;

    @Column(name = "changed_at")
    private Date changedAt;

    @Column(name = "changed_by")
    private String changeBy;
}
